package Exception;

import java.io.FileOutputStream;
import java.io.IOException;

public class FinallyDemo2 {
    public static void main(String[] args)  {
        FileOutputStream fos=null;
        try {
            fos=new FileOutputStream("a/b/foss.dat");

        }catch (IOException e){
            System.out.println("IO");
        }finally {
            try {
                fos.close();
            } catch (Exception e) {
                System.out.println("finish");            }
        }

    }
}
